<!--
  描述：产品组列表页
  @author tanghongjun
  @since 2020-08-19 11:18:36
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>工单视频列表</title>
</head>
<body>

<div class="layui-fluid">

    <blockquote class="layui-crumb">
        渠道管理>
        <a lay-href="/channel/list.action">渠道管理</a>>
        <a th:href="'/channel/detail.action?channelId='+${obj.channelId}">[[${obj.name}]]</a>>
        <zmn th:text="工单视频">工单视频</zmn>
    </blockquote>

    <div class="layui-card">

        <div th:replace="channel/_tab::tab"></div>

        <fieldset class="layui-elem-field">
            <div class="layui-field-box" style="color:black;">
                <!-- 此处若未设置，则将继承上级渠道配置-->
                工单视频
            </div>
        </fieldset>
        <form class="layui-form" method="POST">
            <input type="hidden" name="channelId" th:value="${obj.channelId}"/>
        </form>
        <div class="layui-card-body">
            <div th:replace="channel/workorder/video/_table::table"/>
            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/channel/workorder/video/addEditView.action')}">
                            <a href="#" th:onclick="|toAddWorkOrderVideo([[${obj.channelId}]])|"
                               class="layui-btn layui-btn-sm layui-btn-primary"
                               lay-text="新增" text="新增">+新增</a>
                        </zmn>
                    </div>
                </div>
            </script>
        </div>

    </div>
</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        totalCount: [[${query.totalCount}]],
        pageSize: [[${query.pageSize}]],
        pageIndex: [[${query.pageIndex}]],
        items: [[${items}]]
    };

    layui.config({
        base: "/static/lay/",
        version: "20210607"
    }).extend({
        index: "lib/index",
        channel_workorder_video_list: "channel/workorder/video/zmn.plat.channel.workorder.video.list",
    }).use(['index', 'channel_workorder_video_list']);

</script>
</body>
</html>